<?php

namespace app\reception\validate;

use think\Validate;

class TaskValidate extends Validate
{
    protected $rule = [
        'key' => 'require|in:add_desktop,bind_number,calendar,read,pay_give',
        'task_key' => 'require|in:calendar,read,pay_give',
    ];

    protected $message = [

    ];

    protected $scene = [
        'getTask' => ['key'],
        'claimRewards' => ['task_key'],
    ];
}